package com.song.dao.role;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.song.common.Result;
import com.song.entity.role.Role;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RoleDao extends BaseMapper<Role> {

    List<Role> getFatherRoles();

    List<Role> getRoleByFatherId(int fatherId);

    List<Role> selectRoleList(Map<String, Object> map);

    Integer batchDel(String[] array);

    Integer deleteRoleById(int roleId);

    Integer addRole(Role role);

    Integer updateRole(Role role);
}
